package cn.net.control;

import cn.net.model.CacheDataObject;
import cn.net.netmodel.RequestParams;
import cn.net.service.TtService;
import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class JkControl {

    @Autowired
    private TtService ttService;

    public String getTT(RequestParams params){
        CacheDataObject cdo = ttService.getTTCdo(params);
        String string = JSON.toJSONString(cdo);
        return string;
    }

}
